// 自动生成模板PmsSkuInfo
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsSkuInfo表 结构体  PmsSkuInfo
type PmsSkuInfo struct {
	SkuId         *int     `json:"skuId" form:"skuId" gorm:"primarykey;comment:skuId;column:sku_id;size:19;"`               //skuId
	SpuId         *int     `json:"spuId" form:"spuId" gorm:"comment:spuId;column:spu_id;size:19;"`                          //spuId
	SkuName       *string  `json:"skuName" form:"skuName" gorm:"comment:sku名称;column:sku_name;size:255;"`                   //sku名称
	SkuDesc       *string  `json:"skuDesc" form:"skuDesc" gorm:"comment:sku介绍描述;column:sku_desc;size:2000;"`                //sku介绍描述
	CatalogId     *int     `json:"catalogId" form:"catalogId" gorm:"comment:所属分类id;column:catalog_id;size:19;"`             //所属分类id
	BrandId       *int     `json:"brandId" form:"brandId" gorm:"comment:品牌id;column:brand_id;size:19;"`                     //品牌id
	SkuDefaultImg *string  `json:"skuDefaultImg" form:"skuDefaultImg" gorm:"comment:默认图片;column:sku_default_img;size:255;"` //默认图片
	SkuTitle      *string  `json:"skuTitle" form:"skuTitle" gorm:"comment:标题;column:sku_title;size:255;"`                   //标题
	SkuSubtitle   *string  `json:"skuSubtitle" form:"skuSubtitle" gorm:"comment:副标题;column:sku_subtitle;size:2000;"`        //副标题
	Price         *float64 `json:"price" form:"price" gorm:"comment:价格;column:price;size:18;"`                              //价格
	SaleCount     *int     `json:"saleCount" form:"saleCount" gorm:"comment:销量;column:sale_count;size:19;"`                 //销量
}

// TableName pmsSkuInfo表 PmsSkuInfo自定义表名 pms_sku_info
func (PmsSkuInfo) TableName() string {
	return "pms_sku_info"
}

type PmsSkuInfoRepo interface {
}

type PmsSkuInfoUsecase struct {
	repo PmsSkuInfoRepo
	log  *log.Helper
}

func NewPmsSkuInfoUsecase(repo GreeterRepo, logger log.Logger) *PmsSkuInfoUsecase {
	return &PmsSkuInfoUsecase{repo: repo, log: log.NewHelper(logger)}
}
